<%@ page language="java" import="java.util.*" pageEncoding="ISO-8859-1"%>
<%@page import="java.text.SimpleDateFormat"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
String addPath = path+"/jsp/common/SetupTilesAddItem.jsp?module=userSetup";

%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>User Listing</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	
	<script type="text/javascript">
		function frmSubmit(thisFrm){
		alert("");		
		<%request.setAttribute("module","assay");%>
		alert("2");				
		return true;
		}
	</script>

  </head>
  
  <body  class="bg">
 	<jsp:include page="/jsp/common/ListingFilter.jsp" flush="true"></jsp:include>
 	<br/>
 	<form action="" >
 	<fieldset class="fstStyle" >
 	<legend>
 		<b> :: User Listing :: </b>
 	</legend>	
 	
 		<br/>
 	<table width="100%" cellpadding="5" cellspacing="1"  class="tablebg">
 			<tr class="tlbRow">
				<td class="Headingtext">
					<b>User ID</b>
				</td>
				<td class="Headingtext">
					<b>User Name</b>
				</td>
				<td class="Headingtext">
					<b>Creation Date</b>
				</td>
				<td class="Headingtext">
					<b>User Type</b>
				</td>
				
				<td class="Headingtext">
					<b>Link</b>
				</td>
			</tr>			
 	<%
 		for(int i=0;i<2;i++){
 		if(i%2==0){
 	 %>
 	 	<tr class="">
				<td class="Alternatingtext"><%=i+1*290 %></td>
				<td class="Alternatingtext"><a href ="" class="bold-link ">M/S KALAMANDIR </a></td>
				<td class="Alternatingtext"><%=new Date() %></td>
				<td class="Alternatingtext">2</td>
				<td class="Alternatingtext">
					<a href="#"><img src="<%=basePath%>/images/view.gif" alt="View"></a>/
					<a href="#"><img src="<%=basePath%>/images/edit.gif" alt="Edit"></a>/
					<a href="#"><img src="<%=basePath%>/images/delete.gif" alt="Delete"></a>					
				</td>	
					
		</tr>
 	 <%}else{
 	  %>
 	  <tr class="">
				<td class="textcolor"><%=i+1*290 %></td>
				<td class="textcolor"><a href ="" class="bold-link ">M/S TRIM </a></td>
				<td class="textcolor"><%=SimpleDateFormat.getDateInstance().format(new Date())  %></td>
				<td class="textcolor">1</td>
				<td class="textcolor">
					<a href="#"><img src="<%=basePath%>/images/view.gif" alt="View"></a>/
					<a href="#"><img src="<%=basePath%>/images/edit.gif" alt="Edit"></a>/
					<a href="#"><img src="<%=basePath%>/images/delete.gif" alt="Delete"></a>					
				</td>	
					
		</tr>
		<% }}%> 	 
 	 </table>
 	 <table width="100%">
								<tr align="right">
									<td class="textcolor">
										<a href="<%=addPath%>" > <input type="submit" class="buttonStyle" value="Add New" /> </a>
										
									</td>
								</tr>
	 </table>
	 </fieldset>
 	 </form>
  </body>
</html>
